﻿<%@ Page Language="vb" ContentType="text/xml" AutoEventWireup="false" CodeBehind="rss.aspx.vb" Inherits="quizzes.rss" %>


<asp:repeater runat="server" DataSourceID="datasource_rss">
    
    <HeaderTemplate>
        <rss version="2.0">
            <channel>
                <title>Neon Learn: new quizzes</title>
                <link>localhost:10281/list.aspx</link>
                <description>Ｎｅｏｎ　Ｌｅａｒｎの最初のクイズ</description>
    </HeaderTemplate>


    <ItemTemplate>
                <item>
                    <title><%# EscapeXML(DataBinder.Eval(Container.DataItem, "Title"))%></title>
                    <link>localhost:10281/details.aspx?GUID=<%# DataBinder.Eval(Container.DataItem, "GUID")%></link>
                    <description><![CDATA[<%# DataBinder.Eval(Container.DataItem, "Description")%>]]></description>
                    <pubDate><%# String.Format("{0:R}", DataBinder.Eval(Container.DataItem, "Timestamp")) %></pubDate>
                </item>
    </ItemTemplate>
    
    <FooterTemplate>
            </channel>
        </rss>
    </FooterTemplate>
</asp:repeater>
<asp:SqlDataSource ID="datasource_rss" runat="server" 
    ConnectionString="<%$ ConnectionStrings:quizzes_db_ConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:quizzes_db_ConnectionString.ProviderName %>" 
    SelectCommand="SELECT TOP 5 * FROM quizzes ORDER BY Timestamp DESC">
</asp:SqlDataSource>